<!DOCTYPE html>
<html >
    <head>
        <meta charset="utf-8" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/Support/css/layout.css" media="all" />
        <title>{$dream.user_name}有一个梦想：{$dream.dream_content}</title>
        <meta name="description" content="2015你有啥梦想?" />
        <!-- __{$dream.user_name}有一个梦想：{$dream.dream_content|msubstr=0,22} -->
        <meta name="keywords" content="{$dream.dream_title}" />
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
        <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
        <!-- Mobile Devices Support @begin -->
        <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
        <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
        <meta content="no-cache" http-equiv="pragma">
        <meta content="0" http-equiv="expires">
        <meta content="telephone=no, address=no" name="format-detection">
        <meta content="width=device-width, initial-scale=1.0" name="viewport">
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <!-- apple devices fullscreen -->
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
        <!-- Mobile Devices Support @end -->
        <script type="text/javascript" src="__PUBLIC__/Home/Support/js/jquery.js"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                $('#support_button').hide();
                $('#is_support_button').hide();
                var is_support = "{$is_support}";
                if (is_support) {
                    $('#is_support_button').show();
                    $('#support_button').hide();
                } else {
                    $('#support_button').show();
                    $('#is_support_button').hide();
                }
                $('#support_button').click(function () {
                    /*<empty name="Think.get.code">*/
                    window.location.href = "{$Think.const.DREAM_URL}/index.php?s=/Support/doSupport/state/{$dream.dream_id}.html";
                    /*<else />*/

                    /*<empty name="Think.session.weixin_info">"*/
                    window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid={:C('APP_ID')}"
                            + "&redirect_uri={:urlencode(DREAM_URL . '/index.php?s=/Support/doSupport.html')}"
                            + "&response_type=code&scope=snsapi_userinfo&state={$dream.dream_id}#wechat_redirect";
                    /*<else />*/
                    window.location.href = "{$Think.const.DREAM_URL}/index.php?s=/Support/doSupport/state/{$dream.dream_id}.html";
                    /*</empty>*/

                    /*</empty>*/
                });
                $('#black_button').click(function () {
                    $('#black_notice').remove();
                });
            });
        </script>
    </head>
    <body class="body" > 
        <img src="{$Think.const.DREAM_URL}/Public/Home/Support/images/my.png" style="display:none;" />    
        <div class="dream_banner">
            <img src="__PUBLIC__/Home/Support/images/banner1.jpg"/>           
        </div>	
        <div class="dream_box">
            <ul class="head">
                <label>梦想：{$dream.dream_title}</label><img src="http://emba-user-avatar.qiniudn.com/mengxiang2.jpg" style="width:0;height:0;top:-100px;left:-100px;" />
            </ul>
            <ul class="message">
                <div class="photo">              
                    <img src="{$user.user_icon}" />
                </div>
                <div class="personal">
                    <p>{$user.user_name}</p>
                    <volist name="user.school" id="vo">
                        <p>{$vo.school_name}<label>{$vo.grade_name}</label></p>
                    </volist>
                </div>
            </ul>
            <ul class="text">
                <p>{$dream.dream_content}</p>
            </ul>
        </div>
        <div class="dream_btn">
            <p>支持数：{$count}</p>
            <button id="is_support_button" type="button" value="" class="pre">已支持</button>
            <button id="support_button" type="button" value="" class="blue">支持TA</button>
            <button type="button" value="" onclick="window.location.href = '{$Think.const.DREAM_URL}/index.php?s=/Index/addDream/dream_id/{$modify_id}.html&para1={$Think.session.para1}';">
                <empty name="modify_id">
                    我也说一个
                    <else />
                    编辑梦想
                </empty>
            </button>
            <button type="button" value="" onclick="window.location.href = '{$Think.const.DREAM_URL}/index.php?s=/Index/index.html&para1={$Think.session.para1}';">去看看排行</button>
        </div>
        <eq name="dream.fist_show" value="1">
        <div id="black_notice" class="up_black" align="center">
            <!--<p>大声的告诉你的小伙伴们：<br/>这就是我的梦想，<br/>你们敢支持我吗？</p>-->
            <img src="__PUBLIC__/Home/Support/images/jiantou.png" class="img1"/>
            <img src="__PUBLIC__/Home/Support/images/text.png" class="img2"/>
            <button id="black_button" type="button" value="">这就去</button>
        </div>
        </eq>
    </body>
</html>
